package com.wx_shop.admin.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperUsUser implements Serializable {
    private Integer id;

    /**
     * openid
     */
    private String openid;

    private String nick;

    private String icon;

    /**
     * 1关注、2未关注、3取消关注
     */
    private Integer wxstatus;

    /**
     * 关注时间
     */
    private Date subscribeTime;

    /**
     * 取消关注时间
     */
    private Date unsubscribeTime;

    /**
     * 可用1、不可用2
     */
    private Integer status;

    private Integer sex;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 1关注、2未关注、3取消关注
     */
    public Integer getWxstatus() {
        return wxstatus;
    }

    /**
     * 1关注、2未关注、3取消关注
     */
    public void setWxstatus(Integer wxstatus) {
        this.wxstatus = wxstatus;
    }

    /**
     * 关注时间
     */
    public Date getSubscribeTime() {
        return subscribeTime;
    }

    /**
     * 关注时间
     */
    public void setSubscribeTime(Date subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    /**
     * 取消关注时间
     */
    public Date getUnsubscribeTime() {
        return unsubscribeTime;
    }

    /**
     * 取消关注时间
     */
    public void setUnsubscribeTime(Date unsubscribeTime) {
        this.unsubscribeTime = unsubscribeTime;
    }

    /**
     * 可用1、不可用2
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 可用1、不可用2
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", openid=").append(openid);
        sb.append(", nick=").append(nick);
        sb.append(", icon=").append(icon);
        sb.append(", wxstatus=").append(wxstatus);
        sb.append(", subscribeTime=").append(subscribeTime);
        sb.append(", unsubscribeTime=").append(unsubscribeTime);
        sb.append(", status=").append(status);
        sb.append(", sex=").append(sex);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperUsUser other = (SuperUsUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getNick() == null ? other.getNick() == null : this.getNick().equals(other.getNick()))
            && (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()))
            && (this.getWxstatus() == null ? other.getWxstatus() == null : this.getWxstatus().equals(other.getWxstatus()))
            && (this.getSubscribeTime() == null ? other.getSubscribeTime() == null : this.getSubscribeTime().equals(other.getSubscribeTime()))
            && (this.getUnsubscribeTime() == null ? other.getUnsubscribeTime() == null : this.getUnsubscribeTime().equals(other.getUnsubscribeTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getNick() == null) ? 0 : getNick().hashCode());
        result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
        result = prime * result + ((getWxstatus() == null) ? 0 : getWxstatus().hashCode());
        result = prime * result + ((getSubscribeTime() == null) ? 0 : getSubscribeTime().hashCode());
        result = prime * result + ((getUnsubscribeTime() == null) ? 0 : getUnsubscribeTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}